﻿namespace F5.BigIp.LocalTrafficManager.UI.Views
{
    using F5.BigIp.LocalTrafficManager.UI.Infrastructure;

    public class ViewFactory : IViewFactory
    {
        //private readonly IContainer container;

        //public ViewFactory(IContainer container)
        //{
        //    this.container = container;
        //}

        public T CreateView<T>() where T : class, IWindow
        {
            //return container.Resolve<T>();

            return TinyIoCContainer.Current.Resolve<T>();
        }
    }
}
